<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.researchsubject.domain.*" pageEncoding="UTF-8"%>
<%@page import="com.hs.core.page.*,com.hs.core.utils.*"%>
<%@page import="cn.ac.cintcm.dataconverge.util.Constants;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 
List resultList = null;
String pageStr = ""; 
QueryPage query = (QueryPage)request.getAttribute("query");
int perpageCount = query.getPerpagenum();
int currentPage = query.getCurrentPageNo(); 
   resultList = (List)request.getAttribute("logList");
   pageStr = (String)request.getAttribute("pageStr");
   
 
String userName = (String)request.getAttribute("userName"); 
String logType = (String)request.getAttribute("logType");  
String orderName = (String)request.getAttribute("orderName");
String orderNum = (String)request.getAttribute("orderNum"); 
String ID = (String)request.getAttribute("ID");

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>课题信息</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <link href="<%=path%>/index/Themes/com/style.css" rel="stylesheet" type="text/css" /> 
    <script src="<%=path%>/index/Scripts/Script.js" language="javascript" type="text/javascript"></script>
     <script src="<%=path%>/js/common.js" language="javascript" type="text/javascript"></script>
       <script src='<%=basePath%>dwr/engine.js'></script>
     <script src='<%=basePath%>dwr/util.js'></script> 
     <script src='<%=basePath%>dwr/interface/subject.js'></script>
   
    <script language="javascript" type="text/javascript" src="<%=path %>/js/My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript">
        function searchSubject(){  
       			searchform.submit();			
       }
    </script>

</head>
<body class="rtm_body" scroll="yes">
<form name="searchform" action = "<%=path%>/subjectModify.htm?action=listAllLogs" method="post">
    <div class="r_rtm_tb_mg1">
        <div class="r_rtm_tb1">
            <span>
                <img src="<%=path%>/index/Themes/com/idt_tb_pass.gif" />&nbsp;&nbsp;日志管理</span>
        </div>
    </div>  
     <table cellspacing="2" cellpadding="0" width="100%" class="idt_item_mg" id="Table2">
        <tr>
            <td class="fim_l" width="10%">
                操作人：</td>
            <td class="fim_r" width="10%">
                <input type="text" name="userName" value="<%=userName==null?"":userName %>" class="com_textbox" ></td>
              <td class="fim_l" width="10%">
                帐号：</td>
            <td class="fim_r" width="40%">
                <input type="text" name="ID" value="<%=ID == null?"":ID %>" class="com_textbox" id="Text2"></td>
                 <td class="fim_l" width="10%">
                日志类型：</td>
            <td class="fim_r" width="40%">
                 
             <select name="logType" style="width:100%">
              <option value=""  >-----请选择-----</option>
                <option value="1" <%if("1".equals(logType)){out.print("selected");} %>>登陆</option>
                <option value="3" <%if("3".equals(logType)){out.print("selected");} %>>新增</option>
                <option value="5" <%if("5".equals(logType)){out.print("selected");} %>>修改</option>
                <option value="4" <%if("4".equals(logType)){out.print("selected");} %>>删除</option>
             </select></td>
             
            <td class="fim_r" align="right" colspan="2">
                <input type="submit"  value=" 查  询 "  onclick="searchSubject()" class="com_btn2" id="Button5">
                
                
            </td>
        </tr> 
        </form>
    </table> 
   
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td>
                <div class="content">
                 <form name="form1" action="" method="post">
                    <table width="*" cellpadding="0" cellspacing="1" class="dg_borderstyle" id="Table4">
                        <tr>
                            <td class="dg_headerstyle">
                                序号</td>
                           <td class="dg_headerstyle" width="10%">
                                  用户帐号</td>
                            <td class="dg_headerstyle" width="10%">
                                <a href="javaScript:orderPage('res.name','<%=OrderTool.getOrderNum("res.name",orderName,orderNum)%>');">姓名&nbsp;&nbsp;<%=OrderTool.getOrderImage(basePath,OrderTool.getOrderNum("res.name",orderName,orderNum))%></a></td>
                           
                            <td class="dg_headerstyle">
                                <a href="javaScript:orderPage('o.operdate','<%=OrderTool.getOrderNum("o.operdate",orderName,orderNum)%>');">日志时间&nbsp;&nbsp;<%=OrderTool.getOrderImage(basePath,OrderTool.getOrderNum("o.operdate",orderName,orderNum))%></a></td>
                                 <td class="dg_headerstyle" width="70%"> 日志内容&nbsp;&nbsp;</td> 
                        </tr>
                        <%if(null != resultList && resultList.size()> 0){
                            for(int i = 0;i < resultList.size();i++){
                            	Map obj = (Map)resultList.get(i); 
                         %>
                        <tr class="dg_alternatingitemstyle" onmouseover="ChangeRowBg(this);" onmouseout="ChangeRowBg(this);" onmouseup="ChangeRowBg(this);" onmousedown="ChangeRowBg(this);">
                            
                            <td width="5%" align="center"><%=(i+1)+perpageCount*(currentPage-1) %></td>
                            <td >
                             <%=StringUtilTool.NULL2Blank(obj.get("ID")+"") %>
                            </td>
                            <td width="10%">
                               <%=StringUtilTool.NULL2Blank(obj.get("NAME")+"") %> 
                            </td>
                            <td align="center" width="15%">
                              
                                <%=StringUtilTool.NULL2Blank((String)obj.get("ODATE")) %>
                            </td>
                            <td >
                                 <%=StringUtilTool.NULL2Blank(obj.get("OPERMEMO")+"") %> 
                            </td> 
                        </tr> 
                        <%}}else{%>
                         <tr class="dg_alternatingitemstyle"> 
                            <td align="center" colspan=5>
                                <font color="red">没有找到记录</font>
                            </td> 
                        </tr> 
                        <%}%>
                    </table>
                    </form>
                    <div class="dg_pagerstyle" align="right"> 
                            <%=pageStr %>  
                    </div>
                    
                </div>
            </td>
        </tr>
    </table>
</body>
</html>
